﻿using Nancy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SAP.BusinessOne.Cockpit.Services;

namespace SAP.BusinessOne.Cockpit.Handlers
{
    public class DashboardModule : CockpitModule
    {
        public DashboardModule()
            : base("dashboard")
        {
            Get["/{id:int}"] = parameters => Response.AsJson(new DashboardService().GetDashboard((int)parameters.id));
        }
    }
}
